/*
 * 666有限公司 拥有本软件版权 2021 并保留所有权利。
 * Copyright 2021, 666,
 * All rights reserved.
 */
package com.qlh.lawyermanager.dongao.service;

import com.qlh.lawyermanager.dongao.entity.Lawyer;
import com.qlh.lawyermanager.dongao.mapper.LawyerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 律师业务接口实现类
 * @author 66
 * @version 1.0
 * @date 2023/1/2
 */
@Service
public class LawyerServiceImpl implements LawyerService {
    @Resource
    LawyerMapper lawyerMapper;
    /**
     * 添加律师
     * @param lawyer 律师对象
     * @return 添加成功返回1，否则返回0
     */
    @Override
    public int addLawyer(Lawyer lawyer) {
        return lawyerMapper.insertLawyer(lawyer);
    }
}